package Data;

import it.magazzinoCofi.controllers.AbstractController;
import it.magazzinoCofi.interfaces.Notifica;
import it.magazzinoCofi.model.Model;
import it.magazzinoCofi.view.BaseFrame;


public class Notify implements Notifica{
	   ErrorType ErrorType;
	   String User;
	   BaseFrame comments; //usato per linkare i frame
	   Model model;
	   AbstractController controller;
	   
	   public Notify(ErrorType type,BaseFrame class1) {
		this.ErrorType=type;
		
		this.comments=class1;
		
	}
	   public Notify(ErrorType type,String User,AbstractController controller) {
			this.ErrorType=type;
			this.User=User;
			
			this.controller=controller;
			this.comments=controller.getM_view();
			
		}
	   
	   
	   public ErrorType getErrorType() {
		return ErrorType;
	}
	   public BaseFrame getFrame(){
		   return comments;
	   }
	   
	   public AbstractController getController() {
		return controller;
	}
	   
	}